package cn.wolfcode.rbac.mapper;

import cn.wolfcode.rbac.domain.Department;
import cn.wolfcode.rbac.query.QueryObject;

import java.util.List;

public abstract interface DepartmentMapper {
    //根据id删除部门
    public abstract int deleteByPrimaryKey(Long paramLong);
    //添加部门
    public abstract int insert(Department paramDepartment);
    //根据id查询指定部门信息
    public abstract Department selectByprimaryKey(Long paramLong);
    //查询所有的部门
    public abstract List<Department> selectAll();
    //修改指定的部门信息
    public abstract int updateByprimaryKey(Department paramDepartment);
    //分页
    //查询部门的总条数
  //  public abstract int selectForCount(QueryObject paramQueryObkect);
    //查询所有的部门（分页）
    public abstract List<Department> selectForList(QueryObject qo);
}
